package org.chapter2.util;

import org.apache.commons.lang3.StringUtils;

/**
 * Created by james on 16/1/21.
 */
public class Test {
    public void test(){
        System.out.println(StringUtils.isEmpty(""));
    }
    public void replaceTest(){
        String str = "11111133333,,3,";
        str = str.replace(',','.');
        System.out.println(str);

        StringBuffer columns = new StringBuffer("(");
        columns.append("112").append(",");
        columns.replace(0,columns.length(),")");
        str = columns.toString();
        System.out.println(str);
    }
    public static void main(String[] args) {
        Test test = new Test();
//        test.test();
        test.replaceTest();
    }
}
